package com.dhu719.label_end.mapper;

import com.dhu719.label_end.domain.Patient;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface PatientMapper {

    @Select("<script>" +
            "select * from patient " +
            "where " +
            "<if test='id != null and id != \"\"'>" +
            " id=#{id}" +
            "</if>" +
            "</script>")
    List<Patient> select(@Param("id")String id);
}
